import Vue from 'vue'
import Router from 'vue-router'
//登录注册   忘记密码
import login_in from '../components/login/login_in'
import login_on from '../components/login/login_on'
import password from '../components/login/password'
//下面四个    动态    我的   赛事   好友 
import list from '../components/list/list'
import newss from '../components/footer/news'
import game from '../components/footer/game'
import friend from '../components/footer/friend'
import myapp from '../components/footer/myapp'
//详情
import details from '../components/details/details'
import xiang from '../components/details/xiang'
//报名
import sign from '../components/sign_up/sign'
//选择选手
import Player from '../components/Player/Player'
//选择服务
import service from '../components/service/service'
//选择报名方式
import Selection from '../components/Selection/Selection'
//选择团体
import group from '../components/group/group'
import group_up from '../components/group/group_up'
//选择选手
import information from '../components/information/information'
//搜索
import suos from '../components/sous/suos'
//添加信息4个
import basic from '../components/information/basic'
import files from '../components/information/files'
import Paragraph from '../components/information/Paragraph'
import chress from '../components/information/chress'
//下面是胡国庆页面
import mygame from '../components/pages/myapp/mygame'
import mygametotal from '../components/pages/mygames/mygametotal'
import mycaregame from '../components/pages/mygames/mycaregame'
import myjoin from '../components/pages/mygames/myjoin'
//
import mycontestant from '../components/pages/myapp/mycontestant'
import mycare from '../components/pages/myapp/mycare'
import groups from '../components/pages/myapp/groups'
//
import chessschool from '../components/pages/myapp/chessschool'
import principal from '../components/pages/myapp/principal'
import school from '../components/pages/myapp/school'
import leaderInfor from '../components/pages/myapp/leaderInfor'
import order from '../components/pages/myapp/order'
import total from '../components/pages/pay/total'
import nopay from '../components/pages/pay/nopay'
import paid from '../components/pages/pay/paid'
//
import orderdetail from '../components/pages/myapp/orderdetail'
import refund from '../components/pages/myapp/refund'
import resetpassword from '../components/pages/myapp/resetpassword'
import revisetelephone from '../components/pages/myapp/revisetelephone'
import licence from '../components/pages/myapp/licence'
import appiled from '../components/pages/nav/appiled'
import noapply from '../components/pages/nav/noapply'
import inreview from '../components/pages/nav/inreview'
//
import nav from '../components/pages/myapp/licence'
import pay from '../components/pages/myapp/order'
import mygames from '../components/pages/myapp/mygame'



Vue.use(Router)
export default new Router({
  routes: [
  //  登录注册  
 		{path: '/',component: login_in},
		{path: '/login_on',component: login_on},
		{path: '/password',component: password},
		//  下面四个    动态    我的   赛事   好友 
		{path: '/list',component: list,children:[
			{path: '/newss',component: newss},
		 	{path: '/game',component: game},
		 	{path: '/friend',component: friend},
		 	{path: '/myapp',component: myapp}
		]},
		//详情
		{path: '/details',component: details},
		{path: '/xiang',component: xiang},
		//选择选手
			{path: '/Player',component: Player},
		//我要报名
		{path: '/sign',component: sign},
		//选择服务
		{path: '/service',component: service},
		//选择报名方式
		{path: '/Selection',component: Selection},
		//选择团体
		{path: '/group',component: group},
		{path: '/group_up',component: group_up},
		//搜所
		{path: '/suos',component: suos},
		//选择选手		
		{path: '/information',component: information},
		{path: '/basic',component: basic},
		{path: '/files',component: files},
		{path: '/Paragraph',component: Paragraph},
		{path: '/chress',component: chress},
		//
		{path:'/mygame',component:mygame},
		{path:'/mygames',component:mygames,children:[
			{path: '/mygametotal',component: mygametotal},
		 	{path: '/mycaregame',component: mycaregame},
		 	{path: '/myjoin',component: myjoin},
		]},
		{path:'/mycontestant',component:mycontestant},
	 	{path:'/mycare',component:mycare},
	 	{path:'/groups',component:groups},
	 	//棋校
	 	{path:'/chessschool',component:chessschool},
	 	{path:'/principal',component:principal},
	 	{path:'/school',component:school},
	 	{path:'/leaderInfor',component:leaderInfor},
	 	
	 	//订单
	 	{path:'/order',component:order},
	 	{path:'/pay',component:pay,children:[
	 		{path: '/paid',component: paid},
		 	{path: '/nopay',component: nopay},
		 	{path: '/total',component: total}
	 	]},
	 	{path:'/orderdetail',component:orderdetail},
	 	{path:'/refund',component:refund},
	 	
	 	//我的设置
	 	{path:'/resetpassword',component:resetpassword},
	 	{path:'/revisetelephone',component:revisetelephone},
	 	
	 	{path:'/licence',component:licence},
	 	{path:'/nav',component:nav,children:[
	 			//  已申请  未申请  审核中
	 		{path: '/appiled',component: appiled},
		 	{path: '/noapply',component: noapply},
		 	{path: '/inreview',component: inreview}
	 	]},
		
		
		
		
   	{path:"*",redirect:"/"}//重定向
  ]
})
